<?php


namespace app\api\model;


use think\Model;

class Base extends Model
{
    public function saveData($data){

        $save  = $this->allowField(true)->save($data);
        if ( $save == 0 || $save == false) {
            $res=[  'code'=> 1001,  'msg' => '数据保存失败', ];
        }else{
            $res=[  'code'=> 1000,  'msg' => '数据保存成功',  ];
        }
        return $res;
    }


}